Skip to content

Comments

feat: Add initial implementation of Blake3 G function gadget#7

Closed
storojs72 wants to merge 2 commits intomainfrom
blake3
Closed

feat: Add initial implementation of Blake3 G function gadget#7
storojs72 wants to merge 2 commits intomainfrom
blake3

Conversation

@storojs72
Copy link

This PR contains initial implementation of Blake3 G function gadget.

Essentially two inner gadgets are defined: Add3, which computes addition of 3 u32 at once and XorRotateRight, which takes two u32 as input, computes their XOR and then rotates the XOR result. To check gadget's validity there is a test that uses standard Binius-style input with randomised data (via unconstraint function) for the gadget and also in order to be sure that computations are valid, there is a test_vector test that allows submitting some input and compare output produced by gadget and out-of-circuit implementation.

@storojs72
Copy link
Author

Closing this in favour of IrreducibleOSS#16 to the upstream

@storojs72 storojs72 closed this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant